import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import EmployeeRegister from '../views/EmployeeRegister.vue'
import VisitorAppointment from '../views/VisitorAppointment.vue'
import VisitorList from '../views/VisitorList.vue'
import MessageView from '../views/MessageView.vue'
import ProfileView from '../views/ProfileView.vue'
import TodayVisitor from '../views/TodayVisitor.vue'
const routes = [
  {
    path: '/',
    name: 'HomeView',
    component: HomeView
  },
  {
    path: '/employee-register',
    name: 'EmployeeRegister',
    component: EmployeeRegister
  },
  {
    path: '/today-visit',
    name: 'TodayVisitor',
    component: TodayVisitor 
  },
  {
    path: '/visitor-appointment',
    name: 'VisitorAppointment',
    component: VisitorAppointment
  },
  {
    path: '/visitor-list',
    name: 'VisitorList',
    component: VisitorList
  },
  {
    path: '/message',
    name: 'MessageView',
    component: MessageView
  },
  {
    path: '/profile',
    name: 'ProfileView',
    component: ProfileView
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router